package com.gaojunxiang.service;

import com.gaojunxiang.domain.User;
import com.github.pagehelper.PageInfo;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
//业务层接口
//开始事务
@Transactional(readOnly = true)
public interface UserServiceInter {
    //增
    @Transactional(readOnly = false)
    public boolean save(User user);
    //删
    @Transactional(readOnly = false)
    public boolean delete(Integer uid);
    //改
    @Transactional(readOnly = false)
    public boolean update(User user);
    //分页查
    public PageInfo<User> findAllUser(int currentPage,int pageSize);
    //根据id查找用户
    public User findById(Integer id);
}
